package com.doghome.news.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.doghome.news.entity.Comment;

@Mapper
@Repository
public interface CommentMapper {
    int deleteByPrimaryKey(Integer cid);
    
    int deleteByNid(Integer nid);

    int insert(Comment record);

    int insertSelective(Comment record);

    Comment selectByPrimaryKey(Integer cid);

    int updateByPrimaryKeySelective(Comment record);

    int updateByPrimaryKey(Comment record);
    
    List<Comment> selectAll(@Param("nid") Integer nid,@Param("ccontent") String ccontent);
}